import request from '@/utils/request'

// 查询区列表
export function listFndDistrict(query) {
  return request({
    url: '/basic/fndDistrict/list',
    method: 'get',
    params: query
  })
}

// 查询区详细
export function getFndDistrict(district) {
  return request({
    url: '/basic/fndDistrict/' + district,
    method: 'get'
  })
}

// 新增区
export function addFndDistrict(data) {
  return request({
    url: '/basic/fndDistrict',
    method: 'post',
    data: data
  })
}

// 修改区
export function updateFndDistrict(data) {
  return request({
    url: '/basic/fndDistrict',
    method: 'put',
    data: data
  })
}

// 删除区
export function delFndDistrict(district) {
  return request({
    url: '/basic/fndDistrict/' + district,
    method: 'delete'
  })
}
